package com.example.protocol.mqtt.handler;

import com.example.protocol.mqtt.CallBackHandler;
import lombok.extern.slf4j.Slf4j;
import org.eclipse.paho.client.mqttv3.MqttMessage;

@Slf4j
public class CabinetCmdReturnHandler implements CallBackHandler {
    String topic = "cabinet/+/cmd/return";

    @Override
    public String getHandleableTopic() {
        return this.topic;
    }

    @Override
    public void handleTopic(MqttMessage msg) {
        log.info("{} handle {}", this.getClass().getName(), this.topic);
    }

    @Override
    public Object clone() {
        return null;
    }
}
